import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'




Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    meta: {
      isRoot: true,
      keep: true,
    }
  },
  {
    path: '/release',
    name: 'release',
    component: () => import('../views/ReleaseView.vue'),
    meta: {
      isRoot: true,
      keep: true,
    }

  },
  {
    path: '/My',
    name: 'My',
    component: () => import('../views/MyView.vue'),
    meta: {
      isRoot: true,
      keep: true,
    }
  },
  {
    path: '/PersonalCenter',
    name: 'PersonalCenter',
    component: () => import('../views/PersonalCenter.vue'),
  },
  {
    path: '/LonginView',
    name: 'LonginView',
    component: () => import('../views/LonginView.vue'),
  },
  {
    path: '/TheLongin',
    name: 'TheLongin',
    component: () => import('../views/TheLongin.vue'),
  },
  {
    path: '/ToLongin',
    name: 'ToLongin',
    component: () => import('../views/ToLongin.vue'),
  },
  {
    path: '/Forgot',
    name: 'Forgot',
    component: () => import('../views/ForgotPassword.vue'),
  },
  {
    path: '/UpDatapwd',
    name: 'UpDatapwd',
    component: () => import('../views/UpDatapwd.vue'),
  },
  {
    path: '/SearchView',
    name: 'SearchView',
    component: () => import('../views/SearchView.vue'),
  },
  {
    path: '/searchList',
    name: 'searchList',
    component: () => import('../views/SearchListView.vue'),
  },
  {
    path: '/article',
    name: 'article',
    component: () => import('../views/Article/Article.vue'),
  },
]

const router = new VueRouter({
  routes
})

export default router
